import zlib

import hashlib

import hashlib
import hashlib
s = "aa8d31fa8-563b-485f-9a5e-ea82a1bc79d2:AQoAZCdSApIjAQAA:nJ8uoMRiiMgqqJxyitYheBOJOFui98L24R1uAwURfNKZ11dr+JDkK0uAXdzDbgCTuEAs4REPPefg+pIlkgMnMWkBlVk85KkIWiGL5vd5G2gJS8HdSZKL9mHl1HvlXPYpTgH3ojuQzzCLpZdAPh7RYEhR03xvTtWzFcsmVvwzKJ55nOcdfvPqkrUcFjvDW7Uxxd9nzo4wOD2wi0jQGfFlInRYgg/v9f3tInYXbzWP4wuKNQ222het/i/f6kt0oOrOOXuA/G/309pZsdB3"
hash_object = hashlib.sha256(s.encode())
hex_dig = hash_object.hexdigest()
checksum = hex_dig[:8].upper()  # 取前8字符，并转为大写
print(checksum)  # 可能输出B4A139D3或其他值
